#include "Glosa.h"
#include <iostream>
#include <fstream>

using namespace std;

Glosa::Glosa()
{
	givenWord = correctTranslation = "";
	correctGuess = false;
}

Glosa::Glosa(string givenWord, string correctTranslation)
{
	this->givenWord = givenWord;
	this->correctTranslation = correctTranslation;
	correctGuess = false;
}

Glosa::~Glosa()
{
}

bool Glosa::ask()
{
	if (!correctGuess)
	{
		string guess;
		cout << givenWord << ": ";
		getline(cin, guess);
		if (guess.compare(correctTranslation) == 0)
		{
			correctGuess = true;
			return true;
		}
	}
	return false;
}
